import request from '@/utils/request'
export const companyDepartment = () => {
        return request({
            url: '/company/department'
        })
    }
    // 获取员工列表数据
export const sysUserSimple = () => {
        return request({
            url: '/sys/user/simple'
        })
    }
    // 新增部门
export const companyDepartments = (data) => {
        return request({
            url: '/company/department',
            method: 'post',
            data
        })
    }
    // 删除部门
export const companyDepartmentDeletd = (id) => {
        return request({
            url: '/company/department/' + id,
            method: 'delete'
        })
    }
    // 编辑部门
export const companyDepartmentPut = (data) => {
    return request({
        url: '/company/department/' + data.id,
        method: 'put',
        data
    })
}